﻿#pragma once
#include "EditEntry.h"

class PaletteEditEntry : public EditEntry {
    Q_OBJECT
public:
    explicit PaletteEditEntry(QWidget *parent = nullptr);
    ~PaletteEditEntry();
    void setWidget(QWidget *widget);
    void setValue(const QPalette &value);
    QPalette value() const;

signals:
    void valueChanged(const QPalette &value);

private slots:
    void onEditPalette();
    void onReset();

private:
    void initUi();
    void retranslateUi();

private:
    struct PaletteEditEntryPrivate;
    QScopedPointer<PaletteEditEntryPrivate> p;
};

